#ifndef __PROG_SET_H
#define __PROG_SET_H

#include "stdint.h"

#ifdef __cplusplus
extern "C"
{
#endif

	typedef struct
	{
		void *tab;		    
		uint8_t seg_size;   
		int8_t seg_max;	    
		int16_t time_end;	
	} prog_manage_type;

	int8_t prog_seg_max(const prog_manage_type *tab);

	int8_t prog_seg_min(const prog_manage_type *tab);

	int8_t prog_seg_effective(const prog_manage_type *tab);

	int8_t prog_seg_next(const prog_manage_type *tab, int8_t seg_now);

	int8_t prog_seg_fore(const prog_manage_type *tab, int8_t seg_now);

#ifdef __cplusplus
}
#endif

#endif 
